package com.sskj.boom.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.boom.bean.VcerifyBean;
import com.sskj.boom.ui.activity.CheckoutActivity;
import com.sskj.common.base.HttpData;
import com.sskj.lib.bean.PageBean;
import com.sskj.lib.http.JsonCallBack;

import java.util.List;


/**
 * @author Hey
 * Create at  2019/06/27
 */
public class CheckoutPresenter extends BasePresenter<CheckoutActivity> {

    public void toVcerify(String hash, String num) {
        httpService.toVcerify(hash, num)
                .tag(this)
                .execute(new JsonCallBack<HttpData<List<VcerifyBean>>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<List<VcerifyBean>>> response) {
                        mView.toVcerifyOK(response.body().getData());
                    }
                });
    }
}
